package com.five.community.service;

import com.five.community.bean.Person;
import com.five.community.bean.vo.PersonVo;

import java.util.List;

public interface PersonService {
    //查询所有人员
    List<Person> selectAll() throws Exception;

    List<PersonVo> selectAllPerson(Integer pageNum,Integer pageSize) throws Exception;
    //插入数据
    void insert(Person person) throws Exception;
    //删除数据
    void deleteById(long id) throws Exception;
    //通过id查询数据
    Person selectById(long id) throws Exception;


    void update(Person person) throws Exception;

    List<PersonVo> selectByName(String name) throws Exception;

    List<PersonVo> selectAllPerson() throws Exception;

    List<PersonVo> selectAllByName(Integer pageNum, Integer pageSize, String name) throws Exception;
}
